package com.glacier.common.core.constant;

/**
 * date 2022-11-06 21:27
 * 字典枚举
 *
 * @author glacier
 * @version 1.0
 */
public enum DictEnum {

    /**
     * 删除标记
     */
    DATA_DEL("1", "删除"),
    DATA_NORMAL("0", "正常"),

    /**
     * 状态标记
     */
    STATUS_NORMAL("1", "正常"),
    Status_FORBID("2", "禁止"),

    /**
     * 默认
     */
    DEFAULT("default", "");
    /**
     * 编码
     */
    private final String code;
    /**
     * 名称
     */
    private final String name;

    DictEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "DictEnum{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
